﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace Tesla.Service.FaultContracts
{
    [DataContract]
    public class GenXServiceFault
    {
        [DataMember]
        public string ErrorText { get; set; }
        [DataMember]
        public string ErrorSource { get; set; }
        [DataMember]
        public FaultType ErrorCode { get; set; }
    }

    public enum FaultType
    {
        natural = 0,
        abnormal
    }
}
